package cn.qhuan.modules.mapper;

import cn.qhuan.modules.dtos.ExhiDto;
import cn.qhuan.modules.entity.Exhibition;
import cn.qhuan.modules.entity.Works;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 展厅表
 * @Author: 司翔宇
 * @Date:   2020-12-18
 * @Version: V1.0
 */
public interface ExhibitionMapper extends BaseMapper<Exhibition> {
    /**
     * 根据类别id查询展厅id
     * @param id
     * @return
     */
    public List<String> findExhiIdsByClassId(String id);

    /**
     * 根据展厅id查询作品数量
     * @param exhiId
     * @return
     */

    public Integer selectWorksCountByExhiId(String exhiId);
    /**
     * 根据展厅id查询文档数量
     * @param exhiId
     * @return
     */

    public Integer selectDocCountByExhiId(String exhiId);

    /**
     * 根据专题id查询关联的作品
     * @param dto
     * @return
     */
    public List<Works> findWorksListByExhiId(@Param("dto") ExhiDto dto);

    /**
     * 查询作品数量
     * @param dto
     * @return
     */
    public Integer findWorksCountByExhiId(@Param("dto") ExhiDto dto);
}
